home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Snippets / NewLace 1.1.1 / Read Me < prev    next >
Encoding:
Text File  |  1995-12-15  |  2.8 KB  |  72 lines  |  [TEXT/ttxt]

  1. NewLace-c.sit.hqx - Think C
  2. -----------------
  3.  
  4. An itty bitty bytes(tm) rewrite of the old MS QuickBasic demo 
  5. called "Lace" with additional functionality and control.
  6.  
  7. Tested on an LC, only, so far.
  8.  
  9. Functions:
  10.  
  11. - Puts up a full screen rDoc window (no multi monitor checking).
  12. - Sprite diameter and offset data are shown in the title bar.
  13. - Does a 'PICT' splash, with a delay.
  14. - Shows a key command "PICT' with a delay (single key hit controls).
  15. - Sets a 27x27 pixel rectangle at 0,0.
  16. - Paints an oval in that rectangle, in B/W, in srcXor pen mode.
  17. - Offsets the rect 2,2 and paints the oval again.
  18. - Continues on and on, boncing off the window bounds.  
  19.  
  20. This, of course, leaves "trails" - and when the trails cross, 
  21. interesting patterns are formed.  
  22.  
  23. Color Quickdraw is checked for in the splashes and alternate B/W
  24. ones are shown if there is none (untested).  If you do have color,
  25. then the 'c' key invokes the Color Picker for selection of a color
  26. for the background.  Since you're in srcXor mode, the sprite will be
  27. the inverse of that color.  This feature can give you a jump on 
  28. some color manipulation you'd care to do on a clip in a color paint 
  29. program.
  30.  
  31. Other features:
  32.  
  33. - Diameter of sprite can be increased up to 99 or decreased to 5. 
  34. - Offset can go from 1 to 9.  
  35. - Shapes are round (default), square or both (it alternates between 
  36.     PaintOval and PaintRect).
  37. - Angle can be changed from 45 degrees to 30 (approx.).
  38. - Key and about pict's can be brought up at any time.
  39. - Defaults can be reset with the 'd' key.
  40.  
  41. Screen capture is possible any time and there's a pause function.  
  42. Captures can be opened in a color paint program where the patterns 
  43. can be clipped and manipulated for use as desktop pictures, other 
  44. programs, etc.
  45.  
  46. The backgrounds of the splashes in "NewLace" were made with Color 
  47. It! 2.3, by opening a screen capture, lightening the image 75% and 
  48. getting an even selection repeated via clip/paste.  In Color It! 
  49. you can edit the picture palette by replacing one color with 
  50. another.  So you do not have to change single pixel colors 
  51. individually.  Other paint programs probably have that same feature.
  52.  
  53. In the larger sizes, some patterns are awesome, but there is usually
  54. only one intersection and you must pause to capture.  
  55.  
  56. If the settings at any size are just right for the window size, the 
  57. sprite will bounce around for a long time and hit one of the 
  58. corners evenly.  When you see this you'll know that it will now 
  59. "undo" all the drawing it did, in reverse sequence.  As I recall, 
  60. default does this) on my 12" monitor).
  61.  
  62. If you want it to continue on, rather than do this, just hit the
  63. '+' key or '-' key once, to throw it out of sync.
  64.  
  65. Look for "faces" in edge patterns, especially in larger diameters!
  66.  
  67. Any comments, suggestions, improvements, etc. are welcome.
  68.  
  69. Enjoy!
  70.  
  71. kenlong@netcom.com
  72.